package com.x_memteor.base_master.utils;

import com.vise.xsnow.common.GsonUtil;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2018/3/16 0016 下午 5:15
 * @company:
 * @email: lx802315@163.com
 */
public class ToolUtils {

    /**
     * @description: 通过实体类获取json字符串
     * @date: 2018/3/16 0016
     * @company:
     * @author: Meteor
     * @Email:lx802315@163.com
     */
    public static String getJsonToBean(Object object) {
        String jsonString = "";
        if (object != null) {
            jsonString = GsonUtil.gson().toJson(object);
        }
        return jsonString;
    }
}
